package com.wyz.dao;

import com.wyz.entity.UserInfo;

import java.util.List;

public class SearchDao extends Dao<UserInfo>{
    public List<UserInfo> searchStu(String name,String sex){
        String sql = "select * from user2 where name like ? and sex = ?";
        return SelectMore(sql,UserInfo.class,"%"+name+"%",sex);
    }

}
